package com.csb.mapper;

import com.csb.pojo.Apply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ApplyMapper {
    // 向申请表插入一条申请数据
    void saveApplyInfo(Apply apply);
    // 向申请表插入一条归还数据
    void saveApplyInfoBack(Apply apply);
    //
    List<Apply> getPersonAppList(String account);
    // 获取待审批一览
    List<Apply> getApprovalNoList(int applyInit);
    // 批量更新申请表
    void batchUpdateApplyInfo(@Param("ids") String[] ids,@Param("applyYes") int applyYes,@Param("account") String approvalAccount);
    // 根据当前申请流水号,获取申请信息(资产编号,申请者账号)
    Apply getAppInfoById(String id);

    List<Apply> getPersonAppAllList();
}
